import request from '@/utils/request'
import {client} from '@/utils/tools'
//冰箱列表
export function equipmentList(data) {
	return request.get("user_team/freezerList", {
		params: data
	});
}
// 我的团队
export function myTeamList(data) {
	return request.get("user_team/myTeam", {
		params: data
	});
}
//团队收益
export function totalRevenue(data) {
	return request.get("user_team/totalRevenue", {
		params: data
	});
}
//本人收益
export function myRevenue(data) {
	return request.get("user_team/myRevenue", {
		params: data
	});
}
//收益类型
export function incomeType(data) {
	return request.get("user_team/incomeType", {
		params: data
	});
}
//团队数据
export function homeTeam(data) {
	return request.get("user_team/homeTeam", {
		params: data
	});
}
//申请店铺
export function businessApply(data) {
	return request.post("user/BusinessApply", data);
}
//获取店铺信息
export function businessApplyInfo(data) {
	return request.get("user/BusinessApply", data);
}

//升级合伙人
export function partnerBuy(data) {
	return request.post("Partner/buy", data);
}
//购买冰箱
export function freezerBuy(data) {
	return request.post("freezer/buy", data);
}
//预支付
export function paymentPrepay(data) {
	return request.post("Payment/prepay", data);
}

//合伙人列表
export function partnerTemplate(data) {
	return request.get("Partner/partnerTemplate", {
		params: data
	});
}

//权益值记录
export function equityLog(data) {
	return request.get("user/equityLog", {
		params: data
	});
}

//商家列表
export function businessList(data) {
	return request.get("business/lists", {
		params: data
	});
}
//商家信息
export function businessInfo(data) {
	return request.get("business/info", {
		params: data
	});
}

//商家订单列表
export function businessOrder(data) {
	return request.get("business/orderList", {
		params: data
	});
}

//升级合伙人支付订单详情
export function partnerOrderDetail(id) {
	return request.get('partner/orderDetail', {
		params: {
			id
		}
	})
}
//购买冰箱支付订单详情
export function freezerOrderDetail(id) {
	return request.get('freezer/orderDetail', {
		params: {
			id
		}
	})
}
